import http from "../../utils/index"


/**
 * 分页查询地图列表
 * @param data
 * @returns {*}
 */
export function pager(data = {}) {
    return http.post('api/lgs/map/pager',data);
}

/**
 * 查询详细
 * @param id
 * @returns {*}
 */
export function details(id) {
    return http.get('api/lgs/map/details/'+id);
}

/**
 * 删除地图
 * @param ids
 * @returns {*}
 */
export function remove(ids) {
    return http.delete('api/lgs/map/remove/'+ids);
}

/**
 * 保存
 * @param data
 * @returns {*}
 */
export function save(data = {}) {
    return http.put('api/lgs/map/save/', data)
}

/**
 * 解锁站点
 * @param {} uuid 
 * @returns 
 */
export function unLockLocation(uuid){
    return http.put('api/lgs/map/components/unLockLocation/'+uuid);
}